ASoC: Intel/SOF: use set_stream() instead of set_tdm_slots() for HDAudio
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 24 Dec 2021 02:10:32 +0000 (10:10 +0800)
committerSalvatore Bonaccorso <carnil@debian.org>
Sat, 21 Jan 2023 14:35:48 +0000 (14:35 +0000)
commita7f37c3a50f318555da2784ce85eadc811f3e70e
tree9ed278adc5124bdd08429b9a3cc9bd2540918a11
parentd5fef0fa898aec7a62ffd0c85cc60af3286f5f4e
ASoC: Intel/SOF: use set_stream() instead of set_tdm_slots() for HDAudio

Origin: https://git.kernel.org/linus/636110411ca726f19ef8e87b0be51bb9a4cdef06
Bug-Debian: https://bugs.debian.org/1027430
Bug-Debian: https://bugs.debian.org/1027483

Overloading the tx_mask with a linear value is asking for trouble and
only works because the codec_dai hw_params() is called before the
cpu_dai hw_params().

Move to the more generic set_stream() API to pass the hdac_stream
information.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20211224021034.26635-6-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name ASoC-Intel-SOF-use-set_stream-instead-of-set_tdm_slo.patch
sound/soc/codecs/hdac_hda.c
sound/soc/intel/skylake/skl-pcm.c
sound/soc/sof/intel/hda-dai.c